package org.mybatis3.test5;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.Map;
import java.util.Set;

public class Test8 {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        Dog d1=(Dog) context.getBean("dog7");

        System.out.println(d1.getName());
        Map<String,String> qinQi=d1.getQinQi();
        for (String k:qinQi.keySet()){
            System.out.println(k+":"+qinQi.get(k));
        }
    }
}
